//商品显示设置
import React from "react";
import "./css/store-goods-show.css";
import "./css/StoreInfo.css";
import "./css/storeShowSet.css";
import { Form, Input, Button, Radio } from "antd";
import HOCStoreGoodsShows from '../../component/set/HOC/HOCStoreGoodsShow'

const layout = {
  labelCol: { span: 6 },
  wrapperCol: { span: 10 },
};

@HOCStoreGoodsShows
class StoreGoodsShow extends React.Component {
  render() {
      let {submit} = this.props
    return (
      <div className="store_goods_show store_show_set storeInfo">
        <div className="singleForms">
          <Form {...layout} name="infoOne" ref='formOne'>
            <div className="formTwo">
              <Form.Item
                label="是否显示货号"
                name="numberStatu"
                rules={[{ required: true, message: "请选择" }]}
              >
                <Radio.Group>
                  <Radio value={1}>是</Radio>
                  <Radio value={0}>否</Radio>
                </Radio.Group>
              </Form.Item>
            </div>
            <div className="formTwo">
              <Form.Item
                label="是否显示重量"
                name="weightStatu"
                rules={[{ required: true, message: "请选择" }]}
              >
                <Radio.Group>
                  <Radio value={1}>是</Radio>
                  <Radio value={0}>否</Radio>
                </Radio.Group>
              </Form.Item>
            </div>
            <div className="formTwo">
              <Form.Item
                label="是否显示库存"
                name="inventoryStatu"
                rules={[{ required: true, message: "请选择" }]}
              >
                <Radio.Group>
                  <Radio value={1}>是</Radio>
                  <Radio value={0}>否</Radio>
                </Radio.Group>
              </Form.Item>
            </div>
            <div className="formTwo">
              <Form.Item
                label="是否显示市场价格"
                name="priceStatu"
                rules={[{ required: true, message: "请选择" }]}
              >
                <Radio.Group>
                  <Radio value={1}>是</Radio>
                  <Radio value={0}>否</Radio>
                </Radio.Group>
              </Form.Item>
            </div>
          </Form>
          <div className="btn">
            <Button onClick={submit}>确定</Button>
          </div>
        </div>
      </div>
    );
  }
}

export default StoreGoodsShow;
